import requests
import json


def status_start(a, b):
    return 0
    url = 'https://tf.vividata.work:12001/bot_center/start/tf'
    data = json.dumps({
        'task_name': a,
        'hostname': b
    })
    try:
        response = requests.post(url, data)
        print(response.text)
    except:
        print('状态更新失败(start)')


def status_upload(a, b):
    return 0
    url = 'https://tf.vividata.work:12001/bot_center/upload/tf'
    data = json.dumps({
        'task_name': a,
        'hostname': b
    })
    try:
        response = requests.post(url, data)
        print(f'任务状态更新(upload):\t{response.text}')
    except:
        print('状态更新失败(upload)')



